package com.rightsidetech.system.dtos.request.adverts;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class CloseLoadReq implements Serializable {

    @ApiModelProperty(required = true)
    @NotNull(message = "id不可为空")
    @Min(value = 0,message = "id不可为负数")
    private Long id;

    @ApiModelProperty(value = "是否关闭 0-未关闭 1-关闭",required = true)
    @NotNull(message = "关闭状态不可为空")
    @Range(min = 0,max = 1,message = "关闭状态只有两种")
    private Byte isClose;
}
